package ar.uade.edu.fain.ad.client.web.servlet.salon;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import ar.uade.edu.fain.ad.client.delegate.SalonServiceDelegate;
import ar.uade.edu.fain.ad.client.web.servlet.BaseServlet;

public abstract class SalonServlet extends BaseServlet {

	private static final long serialVersionUID = 1L;

	private SalonServiceDelegate salonServiceDelegate;

	final String viewBasePath = "/pages/salon/";

	/**
	 * @see HttpServlet#HttpServlet()
	 */
	public SalonServlet() {
		super();
	}

	@Override
	public void init() throws ServletException {
		super.init();
		this.salonServiceDelegate = getDelegateFactory().createSalonDelegate();
	}

	protected String getViewBasePath() {
		return viewBasePath;
	}

	public SalonServiceDelegate getSalonServiceDelegate() {
		return salonServiceDelegate;
	}

}
